﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace TheJoyOfCode.SLUploader
{
    public class FileUploaderViewModel : INotifyPropertyChanged
    {
        private string _status;

        public string Status
        {
            get { return _status; }
            set
            {
                _status = value;
                OnPropertyChanged("Status");
            }
        }

        private int _totalFiles = 1;

        public int TotalFiles
        {
            get { return _totalFiles; }
            set
            {
                _totalFiles = value;
                OnPropertyChanged("TotalFiles");
            }
        }

        private int _uploadedFiles;

        public int UploadedFiles
        {
            get { return _uploadedFiles; }
            set
            {
                _uploadedFiles = value;
                OnPropertyChanged("UploadedFiles");
            }
        }


        private bool _showOKButton = false;

        public bool ShowOKButton
        {
            get { return _showOKButton; }
            set
            {
                _showOKButton = value;
                OnPropertyChanged("ShowOKButton");
            }
        }

        private bool _showUploadButton = true;

        public bool ShowUploadButton
        {
            get { return _showUploadButton; }
            set
            {
                _showUploadButton = value;
                OnPropertyChanged("ShowUploadButton");
            }
        }

        protected virtual void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
